﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using System.Web.Routing;
using Enter.Mvc.Base;

namespace Enter.Mvc.Mall
{
    public class MvcApplication : BaseApplication
    {
        public override void RegisterRoutes(System.Web.Routing.RouteCollection routes)
        {
            base.RegisterRoutes(routes);

          //  routes.MapRoute(
          //"HomeUser",
          //"home/user/",
          //new { controller = "Home", action = "User" }
          //);
         

            routes.MapRoute(
            "Default", // Route name
            "{controller}/{action}/{id}", // URL with parameters
            new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults
        );
        }


        protected override void registerActionFilters(Base.Infrastructure.ActionFilters.IActionFilterRegistry registry)
        {
            base.registerActionFilters(registry);
        }
    }
}
